<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>函数、其他对象</title>
		<script>
			/*
			function 函数名(){
			函数体；
		}
		没有返回值，没有参数
		*/
		
		function funA(){
			alert("abcdefg");
		}
		
		function funB(num){
			alert(num);
			num.innerHTML="修改啦";
			alert(num.innerHTML);
		}
		
		function funC(a,b,c){
			alert(a+"吼吼"+b+"哈哈"+c+"嘿嘿");
		}
		
		//对象
		function A(){
			history.back();
		}
		
		function B(){
			history.forward();
		}
		function C(){
			history.go();
		}
		
		function D(){
			location.href="https://blog.csdn.net/mm_3_by";
		}
		</script>
		
	</head>
	<body>
		<button onclick="funA()">按我啦</button>
		<button onclick="funB('啦啦啦啦')">按我</button>
		<button onclick="funB(this)">按</button>
		<button onclick="funC('蔡','宇','飞')">快按</button>
		<br /><br />
		<button onclick="A()">back</button>
		<button onclick="B()">forward</button>
		<button onclick="C()">go</button>
		<br /><br />
		<button onclick="D()">去也</button>
	</body>
</html>
